<template>
	<view class="goods_list">
		<view class="goods_item" v-for="item in goods" :key="item.goods_id">
			<image :src="item.goods_big_logo" mode=""></image>
			<view class="price">
				<text>${{item.goods_price}}</text>
				<text>${{item.goods_price-500}}</text>				
			</view>
			<view class="name">
				{{item.goods_name}}										
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"goods-list",
		data() {
			return {
				
			};
		},
		props:['goods']
	}
</script>

<style lang="scss">
.goods_list{
	padding: 0 15rpx;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	.goods_item{
		background-color: #FFFFFF;
		width: 355rpx;
		margin: 10rpx 0 5rpx 0;
		padding: 15rpx;
		box-sizing: border-box;
		image{
			width: 80%;
			height: 150px;
			display: block;
			margin: 0 auto;
		}
		.price{
			color: $shop-color;
			font-size: 30rpx;
			margin:15rpx 0;
			text:nth-child(2){
				color: #C8C7CC;
				font-size: 28rpx;
				margin-left: 7rpx;
				text-decoration: line-through;
			}
		}
		.name{
			font-size: 28rpx;
			line-height: 45rpx;
			padding-top: 15rpx;
			padding-bottom: 10rpx;						
		}
	}				
}
</style>
